<template>
  <div class="divBox relative">
    <el-row :gutter="20">
      <leftTree @refresh="chooseList"></leftTree>
      <el-col :span="20" :xs="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <el-tabs v-model="loginType" @tab-click="getList(1)">
              <el-tab-pane :label="item.name" :name="item.type.toString()" v-for="(item,index) in headeNum"
                :key="index" />
            </el-tabs>
            <div class="container">
              <el-form inline size="small" :model="userFrom" ref="userFrom" :label-position="labelPosition"
                label-width="100px" :inline="true">
                <el-form-item label="用户搜索：">
                  <el-input v-model="userFrom.keywords" placeholder="请输入姓名或手机号" clearable />
                </el-form-item>
                <el-form-item label="时间选择：" class="timeBox">
                  <el-date-picker v-model="timeVal" align="right" unlink-panels value-format="yyyy-MM-dd"
                    format="yyyy-MM-dd" size="small" type="daterange" placement="bottom-end" placeholder="自定义时间"
                    :picker-options="pickerOptions" @change="onchangeTime" />
                </el-form-item>
                <el-form-item label="访问情况：">
                  <el-select v-model="userFrom.accessType" placeholder="请选择" clearable>
                    <el-option :value="0" label="全部"></el-option>
                    <el-option :value="1" label="首次访问"></el-option>
                    <el-option :value="2" label="时间段访问过"></el-option>
                    <el-option :value="3" label="时间段未访问"></el-option>
                  </el-select>
                </el-form-item>
                <el-form-item label="性别：">
                  <el-radio-group v-model="userFrom.sex" type="button">
                    <el-radio-button label="">
                      <span>全部</span>
                    </el-radio-button>
                    <el-radio-button label="1">
                      <span>男</span>
                    </el-radio-button>
                    <el-radio-button label="2">
                      <span>女</span>
                    </el-radio-button>
                  </el-radio-group>
                </el-form-item>

                <el-form-item>
                  <el-button type="primary" icon="ios-search" label="default" size="small"
                    @click="userSearchs">搜索</el-button>
                  <el-button class="ResetSearch mr10" @click="reset('userFrom')" size="small">重置</el-button>

                  <el-button type="primary" icon="ios-search" label="default" size="small"
                    @click="setBatch(null, [])">设置分行</el-button>

                  <el-button type="primary" icon="ios-search" label="default" size="small"
                    @click="setPost(null, [])">设置岗位</el-button>

                  <el-button type="primary" icon="ios-search" label="default" size="small"
                    @click="setRole(null, [])">设置角色</el-button>
                  <el-button type="primary" icon="ios-search" label="default" size="small"
                    @click="setTops(null, [])">设置上级</el-button>

                </el-form-item>

              </el-form>
            </div>

          </div>
          <el-table ref="table" v-loading="listLoading" :data="tableData.data" style="width: 100%" size="mini"
            @selection-change="onSelectTab" highlight-current-row>
            <el-table-column type="expand">
              <template slot-scope="props">
                <el-form label-position="left" inline class="demo-table-expand">
                  <el-form-item label="角色：">
                    <span>{{ props.row.isPromoter | filterIsPromoter }}</span>
                  </el-form-item>
                  <el-form-item label="首次访问：">
                    <span>{{ props.row.createTime | filterEmpty }}</span>
                  </el-form-item>
                  <el-form-item label="近次访问：">
                    <span>{{ props.row.lastLoginTime | filterEmpty }}</span>
                  </el-form-item>
                  <el-form-item label="手机号：">
                    <span>{{ props.row.phone | filterEmpty }}</span>
                  </el-form-item>
                  <el-form-item label="标签：">
                    <span>{{ props.row.tagName | filterEmpty }}</span>
                  </el-form-item>
                  <el-form-item label="地址：">
                    <span>{{ props.row.addres | filterEmpty }}</span>
                  </el-form-item>
                  <el-form-item label="备注：" style="width: 100%;display: flex;margin-right: 10px;">
                    <span>{{ props.row.mark  | filterEmpty}}</span>
                  </el-form-item>
                </el-form>
              </template>
            </el-table-column>
            <el-table-column type="selection" width="55">
            </el-table-column>
            <el-table-column prop="uid" label="ID" min-width="80" v-if="checkedCities.includes('ID')" />
            <el-table-column label="头像" min-width="80" v-if="checkedCities.includes('头像')">
              <template slot-scope="scope">
                <div class="demo-image__preview">
                  <el-image style="width: 36px; height: 36px" :src="scope.row.avatar"
                    :preview-src-list="[scope.row.avatar]" />
                </div>
              </template>
            </el-table-column>
            <el-table-column label="姓名" min-width="160" v-if="checkedCities.includes('姓名')">
              <template slot-scope="scope">
                <span>{{scope.row.nickname | filterEmpty  }} | {{scope.row.sex | sexFilter}}</span>
              </template>
            </el-table-column>


            <el-table-column label="手机号" min-width="100" v-if="checkedCities.includes('手机号')">
              <template slot-scope="scope">
                <span>{{scope.row.phone | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="分行" min-width="100">
              <template slot-scope="scope">
                <span>{{scope.row.branch | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="岗位" min-width="100">
              <template slot-scope="scope">
                <span>{{scope.row.post | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="角色" min-width="100">
              <template slot-scope="scope">
                <span>{{scope.row.role | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="上级" min-width="100">
              <template slot-scope="scope">
                <span>{{scope.row.teacher | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="上级编号" min-width="100">
              <template slot-scope="scope">
                <span>{{scope.row.teacherId | filterEmpty}}</span>
              </template>
            </el-table-column>

            <el-table-column label="操作" min-width="130" fixed="right" align="center">
              <template slot-scope="scope">
                <el-button type="text" @click="editUser(scope.row.uid)" size="small"
                  v-hasPermi="['admin:user:infobycondition']">编辑</el-button>
                <el-dropdown trigger="click">
                  <span class="el-dropdown-link">
                    更多<i class="el-icon-arrow-down el-icon--right" />
                  </span>
                  <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item @click.native="setBatch(scope.row.branchId, [scope.row.uid])"
                      v-if="checkPermi(['admin:user:group'])">修改分行</el-dropdown-item>
                    <el-dropdown-item @click.native="setPost(scope.row.postId, [scope.row.uid])"
                      v-if="checkPermi(['admin:user:update:level'])">修改岗位</el-dropdown-item>
                    <el-dropdown-item @click.native="setRole(scope.row.roleId, [scope.row.uid])"
                      v-if="checkPermi(['admin:user:tag'])">修改角色</el-dropdown-item>

                    <el-dropdown-item @click.native="setTops(scope.row.teacherId, [scope.row.uid])"
                      v-if="checkPermi(['admin:user:update:spread'])">修改上级</el-dropdown-item>
                    <el-dropdown-item @click.native="setPhone(scope.row)"
                      v-if="checkPermi(['admin:user:update:phone'])">修改手机号</el-dropdown-item>
                    <el-dropdown-item @click.native="clearSpread(scope.row)"
                      v-if="checkPermi(['admin:retail:spread:clean'])">清除上级</el-dropdown-item>
                  </el-dropdown-menu>
                </el-dropdown>
              </template>
            </el-table-column>
          </el-table>
          <div class="block">
            <el-pagination :page-sizes="[15, 30, 45, 60]" :page-size="userFrom.limit" :current-page="userFrom.page"
              layout="total, sizes, prev, pager, next, jumper" :total="tableData.total" @size-change="handleSizeChange"
              @current-change="pageChange" />
          </div>
        </el-card>
      </el-col>
    </el-row>


    <div class="card_abs" v-show="card_select_show" :style="{top:collapse ? 570 + 'px' : 270 + 'px'}">
      <template>
        <div class="cell_ht">
          <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll"
            @change="handleCheckAllChange">全选</el-checkbox>
          <el-button type="text" @click="checkSave()">保存</el-button>
        </div>
        <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
          <el-checkbox v-for="item in columnData" :label="item" :key="item" class="check_cell">{{item}}</el-checkbox>
        </el-checkbox-group>
      </template>
    </div>

    <branch ref="branch" v-if="showModal" @refresh="getList"></branch>
    <post ref="post" v-if="showPostModal" @refresh="getList"></post>
    <roleEdit ref="role" v-if="showRoleModal" @refresh="getList"></roleEdit>
    <!--编辑-->
    <el-dialog title="编辑" :visible.sync="visible" width="600px">
      <edit-from v-if="visible" :uid="uid" @resetForm="resetForm"></edit-from>
    </el-dialog>

  </div>
</template>

<script>
  import {
    userListApi,
    foundsApi,
    updatePhoneApi
  } from '@/api/user'
  import editFrom from './edit'
  import userDetails from './userDetails'
  //分行设置
  import branch from './branch'
  import post from './post'
  import roleEdit from './roleEdit'

  import leftTree from './leftTree'
  import * as logistics from '@/api/logistics.js'
  import Cookies from 'js-cookie'
  import {
    checkPermi
  } from "@/utils/permission"; // 权限判断函数
  import {
    Debounce
  } from '@/utils/validate'

  export default {
    name: 'UserIndex',
    components: {
      editFrom,
      userDetails,
      branch,
      post,
      leftTree,
      roleEdit
    },
    filters: {
      sexFilter(status) {
        const statusMap = {
          1: '男',
          2: '女'
        }
        return statusMap[status]
      }
    },
    data() {
      return {
        formExtension: {
          image: '',
          spreadUid: '',
          userId: ''
        },
        ruleInline: {},
        extensionVisible: false,
        showRoleModal: false,
        pickerOptions: this.$timeOptions,
        loadingBtn: false,
        PointValidateForm: {
          integralType: 2,
          integralValue: 0,
          moneyType: 2,
          moneyValue: 0,
          uid: ''
        },
        loadingPoint: false,
        VisiblePoint: false,
        visible: false,
        userIds: '',
        showModal: false,
        showPostModal: false,
        levelData: [],
        groupData: [],
        labelData: [],
        selData: [],
        labelPosition: 'right',
        collapse: false,
        props: {
          children: 'child',
          label: 'name',
          value: 'name',
          emitPath: false
        },
        propsCity: {
          children: 'child',
          label: 'name',
          value: 'name'
        },
        headeNum: [{
            'type': '',
            'name': '全部用户'
          },
          {
            'type': 'ios',
            'name': '苹果'
          },
          {
            'type': 'android',
            'name': '安卓'
          }
        ],
        listLoading: true,
        tableData: {
          data: [],
          total: 0
        },
        loginType: '',
        userFrom: {
          labelId: '',
          userType: '',
          sex: '',
          isPromoter: '',
          country: '',
          payCount: '',
          accessType: 0,
          dateLimit: '',
          keywords: '',
          province: '',
          city: '',
          page: 1,
          limit: 15,
          level: '',
          groupId: ''
        },
        grid: {
          xl: 8,
          lg: 12,
          md: 12,
          sm: 24,
          xs: 24
        },
        levelList: [],
        labelLists: [],
        groupList: [],
        selectedData: [],
        timeVal: [],
        addresData: [],
        dynamicValidateForm: {
          groupId: []
        },
        loading: false,
        groupIdFrom: [],
        selectionList: [],
        batchName: '',
        uid: 0,
        Visible: false,
        keyNum: 0,
        address: [],
        multipleSelectionAll: [],
        idKey: 'uid',
        uid: '',
        card_select_show: false,
        checkAll: false,
        checkedCities: ['ID', '头像', '姓名', '用户等级', '分组', '推荐人', '手机号', '余额', '积分'],
        columnData: ['ID', '头像', '姓名', '用户等级', '分组', '推荐人', '手机号', '余额', '积分'],
        isIndeterminate: true,
      }
    },
    activated() {
      this.userFrom.keywords = '';
      this.loginType = '0';
      this.getList(1);
    },
    mounted() {
      this.getList()
    },
    methods: {
      checkPermi,
      setPhone(row) {
        this.$prompt('修改手机号', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          inputErrorMessage: '请输入修改手机号',
          inputType: 'text',
          inputValue: row.phone,
          inputPlaceholder: '请输入手机号',
          closeOnClickModal: false,
          inputValidator: (value) => {
            if (!value) return '请填写手机号'
          }
        }).then(({
          value
        }) => {
          updatePhoneApi({
            id: row.uid,
            phone: value
          }).then(() => {
            this.$message.success('编辑成功')
            this.getList();
          })
        }).catch(() => {
          this.$message.info('取消输入')
        })
      },
      // 清除
      clearSpread(row) {
        this.$modalSure('解除【' + row.nickname + '】的上级吗').then(() => {
          this.$message.success('清除成功')
          this.getList()
        })
      },
      onSubExtension(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            updateSpreadApi(this.formExtension).then(res => {
              this.$message.success('设置成功')
              this.extensionVisible = false
              this.getList()
            })
          } else {
            return false;
          }
        });
      },

      setExtension(row) {
        this.formExtension = {
          image: '',
          spreadUid: '',
          userId: row.uid
        };
        this.extensionVisible = true
      },
      handleCloseExtension() {
        this.extensionVisible = false
      },

      resetForm() {
        this.visible = false;
      },
      reset(formName) {
        this.userFrom = {
          userType: '',
          sex: '',
          country: '',
          payCount: '',
          accessType: 0,
          dateLimit: '',
          keywords: '',
          province: '',
          city: '',
          page: 1,
          limit: 15,
        }
        this.timeVal = []
        this.getList()
      },
      // 列表
      async getCityList() {
        let res = await logistics.cityListTree();
        this.addresData = res
      },
      // 发送文章
      sendNews() {
        if (this.selectionList.length === 0) return this.$message.warning('请先选择用户')
        const _this = this
        this.$modalArticle(function(row) {}, 'send')
      },
      Close() {
        this.Visible = false
        this.levelVisible = false;
      },
      // 账户详情
      onDetails(id) {
        this.uid = id
        this.Visible = true
      },
      // 等级
      onLevel(id, level) {
        var userLevel = new Object();
        this.levelList.forEach(item => {
          if (item.id == level) {
            userLevel.gradeLevel = item.grade;
          }
        })
        userLevel.uid = id;
        userLevel.level = level;
        this.levelInfo = userLevel;
        this.levelVisible = true;
      },
      // 积分余额
      editPoint(id) {
        this.uid = id
        this.VisiblePoint = true
      },
      // 积分余额
      submitPointForm: Debounce(function(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.PointValidateForm.uid = this.uid
            this.loadingBtn = true
            foundsApi(this.PointValidateForm).then(res => {
              this.$message.success('设置成功')
              this.loadingBtn = false
              this.handlePointClose()
              this.getList()
            }).catch(() => {
              this.loadingBtn = false
            })
          } else {
            return false
          }
        })
      }),
      // 积分余额
      handlePointClose() {
        this.VisiblePoint = false
        this.PointValidateForm = {
          integralType: 2,
          integralValue: 0,
          moneyType: 2,
          moneyValue: 0,
          uid: ''
        }
      },
      editUser(id) {
        this.uid = id
        this.visible = true
      },
      submitForm(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.loading = true
            this.batchName === 'group' ? groupPiApi({
              groupId: this.dynamicValidateForm.groupId,
              id: this.userIds
            }).then(res => {
              this.$message.success('设置成功')
              this.loading = false
              this.handleClose()
              this.getList()
            }).catch(() => {
              this.loading = false
            }) : tagPiApi({
              tagId: this.dynamicValidateForm.groupId.join(','),
              id: this.userIds
            }).then(res => {
              this.$message.success('设置成功')
              this.loading = false
              this.handleClose()
              this.getList()
            }).catch(() => {
              this.loading = false
            })
          } else {
            return false;
          }
        });
      },

      getUids() {
        return this.multipleSelectionAll.map(item => item.uid);
      },

      setBatch(branchId, row) {
        console.log(this.multipleSelectionAll);
        if (row.length == 0) {
          if (this.multipleSelectionAll.length === 0) return this.$message.warning('请选择要设置的用户')
          this.showModal = true;
          let uids = this.getUids();
          this.$nextTick(() => {
            this.$refs.branch.show(branchId, uids)
          })
        } else {
          this.showModal = true;
          this.$nextTick(() => {
            this.$refs.branch.show(branchId, row)
          })
        }
      },

      //设置岗位
      setPost(branchId, row) {
        if (row.length == 0) {
          if (this.multipleSelectionAll.length === 0) return this.$message.warning('请选择要设置的用户')
          this.showPostModal = true;
          let uids = this.getUids();
          this.$nextTick(() => {
            this.$refs.post.show(branchId, uids)
          })
        } else {
          this.showPostModal = true;
          this.$nextTick(() => {
            this.$refs.post.show(branchId, row)
          })
        }
      },

      setRole(branchId, row) {
        if (row.length == 0) {
          if (this.multipleSelectionAll.length === 0) return this.$message.warning('请选择要设置的用户')
          this.showRoleModal = true;
          let uids = this.getUids();
          this.$nextTick(() => {
            this.$refs.role.show(branchId, uids)
          })
        } else {
          this.showRoleModal = true;
          this.$nextTick(() => {
            this.$refs.role.show(branchId, row)
          })
        }
      },

      handleClose() {
        this.dialogVisible = false
        this.$refs['dynamicValidateForm'].resetFields();
      },
      // 全选
      onSelectTab(selection) {
        this.selectionList = selection;
        setTimeout(() => {
          this.changePageCoreRecordData()
          let data = [];
          if (this.multipleSelectionAll.length) {
            this.multipleSelectionAll.map((item) => {
              data.push(item.uid)
            });
            this.userIds = data.join(',');
          }
        }, 50)
      },
      // 搜索
      userSearchs() {
        this.userFrom.page = 1;
        this.getList();
      },
      // 选择国家
      changeCountry() {
        if (this.userFrom.country === 'OTHER' || !this.userFrom.country) {
          this.selectedData = [];
          this.userFrom.province = '';
          this.userFrom.city = '';
          this.address = [];
        }
      },
      // 选择地址
      handleChange(value) {
        this.userFrom.province = value[0];
        this.userFrom.city = value[1];
      },
      // 具体日期
      onchangeTime(e) {
        this.timeVal = e;
        this.userFrom.dateLimit = e ? this.timeVal.join(',') : '';
      },

      chooseList(deptId) {
        this.userFrom.bankId = deptId;
        this.getList();
      },
      // mark ----- 列表
      getList(num) {
        this.listLoading = true
        this.userFrom.page = num ? num : this.userFrom.page;
        this.userFrom.userType = this.loginType
        if (this.loginType == 0) this.userFrom.userType = ''
        userListApi(this.userFrom).then(res => {
          this.tableData.data = res.list
          this.tableData.total = res.total
          this.$nextTick(function() {
            this.setSelectRow() // 调用跨页选中方法
          })
          this.listLoading = false
        }).catch(() => {
          this.listLoading = false
        })
        this.checkedCities = this.$cache.local.has('user_stroge') ? this.$cache.local.getJSON('user_stroge') : this
          .checkedCities;
        this.$set(this, 'card_select_show', false);
      },

      // 设置选中的方法
      setSelectRow() {
        if (!this.multipleSelectionAll || this.multipleSelectionAll.length <= 0) {
          return
        }
        // 标识当前行的唯一键的名称
        const idKey = this.idKey
        const selectAllIds = []
        this.multipleSelectionAll.forEach(row => {
          selectAllIds.push(row[idKey])
        })
        this.$refs.table.clearSelection()
        for (var i = 0; i < this.tableData.data.length; i++) {
          if (selectAllIds.indexOf(this.tableData.data[i][idKey]) >= 0) {
            // 设置选中，记住table组件需要使用ref="table"
            this.$refs.table.toggleRowSelection(this.tableData.data[i], true)
          }
        }
      },
      // 记忆选择核心方法
      changePageCoreRecordData() {
        // 标识当前行的唯一键的名称
        const idKey = this.idKey
        const that = this
        // 如果总记忆中还没有选择的数据，那么就直接取当前页选中的数据，不需要后面一系列计算
        if (this.multipleSelectionAll.length <= 0) {
          this.multipleSelectionAll = this.selectionList
          return
        }
        // 总选择里面的key集合
        const selectAllIds = []
        this.multipleSelectionAll.forEach(row => {
          selectAllIds.push(row[idKey])
        })
        const selectIds = []
        // 获取当前页选中的id
        this.selectionList.forEach(row => {
          selectIds.push(row[idKey])
          // 如果总选择里面不包含当前页选中的数据，那么就加入到总选择集合里
          if (selectAllIds.indexOf(row[idKey]) < 0) {
            that.multipleSelectionAll.push(row)
          }
        })
        const noSelectIds = []
        // 得到当前页没有选中的id
        this.tableData.data.forEach(row => {
          if (selectIds.indexOf(row[idKey]) < 0) {
            noSelectIds.push(row[idKey])
          }
        })
        noSelectIds.forEach(uid => {
          if (selectAllIds.indexOf(uid) >= 0) {
            for (let i = 0; i < that.multipleSelectionAll.length; i++) {
              if (that.multipleSelectionAll[i][idKey] == uid) {
                // 如果总选择中有未被选中的，那么就删除这条
                that.multipleSelectionAll.splice(i, 1)
                break
              }
            }
          }
        })
      },
      pageChange(page) {
        this.changePageCoreRecordData()
        this.userFrom.page = page
        this.getList()
      },
      handleSizeChange(val) {
        this.changePageCoreRecordData()
        this.userFrom.limit = val
        this.getList()
      },
      // 删除
      handleDelete(id, idx) {
        this.$modalSure().then(() => {
          productDeleteApi(id).then(() => {
            this.$message.success('删除成功')
            this.getList()
          })
        })
      },
      onchangeIsShow(row) {
        row.isShow ?
          putOnShellApi(row.id).then(() => {
            this.$message.success('上架成功')
            this.getList()
          }).catch(() => {
            row.isShow = !row.isShow
          }) : offShellApi(row.id).then(() => {
            this.$message.success('下架成功')
            this.getList()
          }).catch(() => {
            row.isShow = !row.isShow
          })
      },
      handleAddItem() {
        if (this.card_select_show) {
          this.$set(this, 'card_select_show', false);
        } else if (!this.card_select_show) {
          this.$set(this, 'card_select_show', true);
        }
      },
      handleCheckAllChange(val) {
        this.checkedCities = val ? this.columnData : [];
        this.isIndeterminate = false;
      },
      handleCheckedCitiesChange(value) {
        let checkedCount = value.length;
        this.checkAll = checkedCount === this.columnData.length;
        this.isIndeterminate = checkedCount > 0 && checkedCount < this.columnData.length;
      },
      checkSave() {
        this.card_select_show = false;
        this.$modal.loading("正在保存到本地，请稍候...");
        this.$cache.local.setJSON(
          'user_stroge', this.checkedCities
        );
        setTimeout(this.$modal.closeLoading(), 1000)
      },
    }
  }
</script>

<style scoped lang="scss">
  .timeBox {
    display: flex;
    flex-direction: row;
  }

  .el-dropdown-link {
    cursor: pointer;
    color: #409EFF;
    font-size: 12px;
  }

  .el-icon-arrow-down {
    font-size: 12px;
  }

  .text-right {
    text-align: right;
  }

  .demo-table-expand {
    font-size: 0;
  }

  .demo-table-expand label {
    width: 90px;
    color: #99a9bf;
  }

  .demo-table-expand .el-form-item {
    margin-right: 0;
    margin-bottom: 0;
    width: 33.33%;
  }

  .selWidth {
    width: 100% !important;
  }

  .seachTiele {
    line-height: 30px;
  }

  .container {
    min-width: 821px;

    ::v-deepel-form-item {
      width: 100%;
    }

    ::v-deepel-form-item__content {
      width: 72%;
    }
  }

  .ivu-ml-8 {
    font-size: 12px;
    color: #1682e6;
  }

  .btn_bt {
    border-top: 1px dashed #ccc;
    padding-top: 20px;
  }

  .relative {
    position: relative;
  }

  .card_abs {
    position: absolute;
    padding-bottom: 15px;
    right: 40px;
    width: 200px;
    background: #fff;
    z-index: 99999;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.1);
  }

  .cell_ht {
    height: 50px;
    padding: 15px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .check_cell {
    width: 100%;
    padding: 15px 20px 0;
  }

  ::v-deep .el-checkbox__input.is-checked+.el-checkbox__label {
    color: #606266;
  }
</style>